import request from '@/utils/request'

// 查询企业配额列表
export function listCompanyQuota(query) {
  return request({
    url: '/busi/companyQuota/list',
    method: 'get',
    params: query
  })
}

// 查询企业配额详细
export function getCompanyQuota(id) {
  return request({
    url: '/busi/companyQuota/' + id,
    method: 'get'
  })
}
// 新增企业配额
export function addCompanyQuota(data) {
  return request({
    url: '/busi/companyQuota',
    method: 'post',
    data: data
  })
}

// 修改企业配额
export function updateCompanyQuota(data) {
  return request({
    url: '/busi/companyQuota',
    method: 'put',
    data: data
  })
}

// 删除企业配额
export function delCompanyQuota(id) {
  return request({
    url: '/busi/companyQuota/' + id,
    method: 'delete'
  })
}
